#include "tcp_echo_server.hpp"

void Usage(char* argv[])
{
    printf("%s\n\t[Port]", argv[0]);

}
int main(int argc, char* argv[])
{
    if (argc != 2)
    {
        Usage(argv);
        exit(1);
    }

    uint16_t port = htons(std::stoi(argv[1]));
    tcpServer server(port);

    server.serverInit();
    server.serverLoop();
    return 0;
}